package work01;
import java.util.Random;
public class work02generateRandomNumber {
    public static void main(String[] args) {
        int[] arr = new int[6];
        Random r = new Random();
        for(int i=0;i<arr.length;i++){
            arr[i]=r.nextInt(33)+1;
        }
        for(int i=0;i<arr.length;i++){
            for(int j=0;j<arr.length;j++){
                if(arr[i]==arr[j] && i != j){
                    arr[i] = r.nextInt(33)+1;
                    if(i!=0){
                        i--;
                    }
                }
            }
        }

        for (int j : arr) {
            System.out.println(j + " ");
        }

    }
}
